﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageNove.aspx.cs" Inherits="海漫思考核.EditNove" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>终点小说-管理员-小说管理</title>
    <style>
        #div_title{
            margin-top:50px;
            text-align:center;
            font-size:45px;
            font-family:FangSong;
            color:orange;
        }
        #div_content{
            height:420px;
            width:680px;
            border:3px solid black;
            border-image:linear-gradient(to right,#48316d,#23b7cb) 1 10;
            margin: 100px auto;
            text-align:center;
            font-size:18px;
            font-family:FangSong;
        }
        #div_where{
            margin: 20px auto;
            font-size:20px;
        }
        #tab_info{
            border-collapse:collapse;
            width:680px;
        }.btn{
            height:40px;
            width:260px;
            border-radius:3px;
            background-color:#79f6d6;
            box-shadow: 0 0 2px 1px #11112d;
        }
        .btn:hover{
            background-color:#0fcca9;
        }
        #div_page{
            width:680px;
            position:absolute;
            top:520px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id="div_title">
            小说管理
        </div>
        <div id="div_content">
            <div id="div_where">
                <b>排序方式：</b>
                <asp:DropDownList runat="server" ID="ddl_time" AutoPostBack="true" OnSelectedIndexChanged="OnChanged">
                    <asp:ListItem Text="时间升序" value="asc"/>
                    <asp:ListItem Text="时间降序" value="desc"/>
                </asp:DropDownList>
                <b>小说类型：</b>
                <asp:DropDownList runat="server" ID="ddl_type" AutoPostBack="true" OnSelectedIndexChanged="OnChanged">
                    <asp:ListItem Text="全部类型" value=""/>
                </asp:DropDownList>
                <b>小说名称：</b>
                <asp:TextBox runat="server" value="" ID="text_Novename" AutoPostBack="true" OnTextChanged="OnChanged"/>
            </div>
            
            <table border="1" id="tab_info">
                <tr>
                    <td>小说名称</td>
                    <td>作者名称</td>
                    <td>章节</td>
                    <td>上架时间</td>
                    <td>小说类别</td>
                    <td>小说状态</td>
                    <td>操作</td>
                </tr>
                <asp:Repeater runat="server" ID="rpt">
                <ItemTemplate>
                    <tr>
                        <td><%# Eval("Nname") %></td>
                        <td><%# Eval("Nauthor") %></td>
                        <td><%# Eval("Nchapter") %></td>
                        <td><%# Eval("Nuptime") %></td>
                        <td><%# Eval("Tname") %></td>
                        <td><%# Eval("Sname") %></td>
                        <td>
                            <a href='EditNove.aspx?id=<%# Eval("Nid") %>' id="a_edit">编辑</a>
                            <asp:LinkButton Text="删除" ID="a_del" OnClientClick="return confirm('确认要删除吗?')" OnCommand="a_del_Command" CommandName='<%# Eval("Nname") %>' CommandArgument='<%# Eval("Nid") %>' runat="server" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            </table>
            <div id="div_page">
            <asp:Button Text="新增小说" ID="btn_add" OnClick="btn_add_Click" CssClass="btn" runat="server" /><br />
                <br />
                <asp:Button Text="上一页" OnClick="btn_up_Click" CssClass="btn" ID="btn_up" runat="server" />
                <span id="span_index" runat="server"></span>
                <asp:Button Text="下一页" OnClick="btn_down_Click" CssClass="btn" ID="btn_down" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
